﻿using System.Windows;
using FFmpegVideoClip.Lib;

namespace FFmpegVideoClip.windows
{
    /// <summary>
    /// LogInfoWindow.xaml 的交互逻辑
    /// </summary>
    public partial class LogInfoWindow : Window
    {
        public static LogInfoWindow? Instance;
        public static void ShowLogInfo()
        {
            if (Instance is not null)
            {
                Instance.Activate();
                return;
            }
            else
            {
                Instance = new();
                Instance.Show();
            }
        }
        public LogInfoWindow()
        {
            InitializeComponent();
            this.Closed += (s, e) => Instance = null;
        }

        private void Clear_Button_Click(object sender, RoutedEventArgs e)
        {
            LogManage.Clear();
        }
    }
}
